package Units;

public enum UnitName {
	NULL, EMPTY, 
	DRAGON1, DRAGON2, DRAGON3, DRAGON4, DRAGONKING,
	ROBOT1, ROBOT2, ROBOT3, ROBOT4, ROBOTKING;
	
	public static boolean isRobot(UnitName name) {
		if (name == UnitName.ROBOT1) return true;
		if (name == UnitName.ROBOT2) return true;
		if (name == UnitName.ROBOT3) return true;
		if (name == UnitName.ROBOT4) return true;
		if (name == UnitName.ROBOTKING) return true;
		return false;
	}
	
	public static boolean isDragon(UnitName name) {
		if (name == UnitName.DRAGON1) return true;
		if (name == UnitName.DRAGON2) return true;
		if (name == UnitName.DRAGON3) return true;
		if (name == UnitName.DRAGON4) return true;
		if (name == UnitName.DRAGONKING) return true;
		return false;
	}
}

